<template>
    <div class="select-self-area">
        <a class="input-sub" @click="decrement">-</a>
        <span class="select-ipt">{{num}}</span>
        <a class="input-add" @click="increment">+</a>
    </div>
</template>
<style>
</style>
<script>
    export default{
        props:["num"],
        data(){
            return{
            }
        },
        methods:{
          increment(){
            this.$emit("incre");
          },
          decrement(){
            this.$emit("decre");
          }
        }
    }
</script>
